package com.esd.controller.csair;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.esd.csair.Assignee;
import com.esd.csair.ContactInfo;
import com.esd.csair.Csair;
import com.esd.csair.CsairImpl;
import com.esd.csair.CsairReturnValue;
import com.esd.csair.YuEZhuCeInfo;

/**
 * 
 * 明珠会员帐号管理模块
 * 
 * @author snailzhang
 * @date 2017年7月20日
 *
 */
@Controller
@RequestMapping(value = "cs")
public class CSMManagerController {
	
	private static Logger log = Logger.getLogger(CSMManagerController.class);
	
	@RequestMapping(value = "preCsairBaseInfoEx", method = RequestMethod.GET)
	public void preCsairBaseInfoEx(HttpSession session) {
		log.info("=========================preCsairBaseInfoEx==================================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		webClient.preCsairBaseInfoEx();
	}
	
	/**
	 * 加载明珠会员基本信息
	 * 
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "preCsairBaseInfo", method = RequestMethod.GET)
	public ModelAndView preCsairBaseInfo(HttpSession session) {
		log.info("========================加载明珠会员基本信息==============================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object> map = webClient.preCsairBaseInfo();
		return new ModelAndView("csair/baseInfo2", map);
	}
	
	/**
	 * 明珠会员基本信息保存
	 * 
	 * @param session
	 * @param request
	 */
	@RequestMapping(value = "csairBaseInfo", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue csairBaseInfo(HttpSession session, HttpServletRequest request) {
		log.info("============================明珠会员基本信息保存=================================");
		String b2cName = request.getParameter("b2cName");
		String title = request.getParameter("title");
		String schoolLevel = request.getParameter("schoolLevel");
		String professionCode = request.getParameter("professionCode");
		String professionTitle = request.getParameter("professionTitle");
		String officeName = request.getParameter("officeName");

		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.csairBaseInfo(b2cName, title, schoolLevel, professionCode,professionTitle, officeName);
		return returnValue;
	
	}

	
	@RequestMapping(value = "preCsairContactInfoEx", method = RequestMethod.GET)
	public void preCsairContactInfoEx(HttpSession session) {
		log.info("=========================preCsairContactInfoEx==================================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		webClient.preCsairContactInfoEx();
	}
	
	
	@RequestMapping(value = "getAddress", method = RequestMethod.GET)
	@ResponseBody
	public Map<String,Object> getAddress(HttpSession session,String province) {
		log.info("=========================getAddress==================================");
		CsairImpl webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String,Object> map = webClient.getAddress(province);
		return map;
	}
	
	/**
	 * 加载明珠会员联系信息
	 * 
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "preCsairContactInfo", method = RequestMethod.GET)
	public ModelAndView preCsairContactInfo(HttpSession session) {
		log.info("==============================加载明珠会员联系信息================================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object> map = webClient.preCsairContactInfo();
		return new ModelAndView("csair/contactInfo2", map);
	}
	
	/**
	 * 联系信息更改省
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "changProvince" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue changProvince(HttpServletRequest request,HttpSession session){
		log.info("===============================联系信息更改省======================================");
		String province = request.getParameter("province");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.changProvince(province);
		return returnValue;
	}
	
	/**
	 * 联系信息页面加载
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "loadCsairContactPage" , method = RequestMethod.GET)
	public ModelAndView loadCsairContactPage(HttpSession session){
		log.info("===========================联系信息页面加载===========================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object> map = webClient.loadCsairContactPage();
		return new ModelAndView("csair/contactInfo2", map);
	}
	
	/**
	 * 明珠会员联系信息保存
	 * 
	 * @param request
	 * @param session
	 */
	@RequestMapping(value = "csairContactInfo", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue csairContactInfo(HttpServletRequest request, HttpSession session) {
		log.info("==============================明珠会员联系信息保存============================");
		String language = request.getParameter("language");
		String country = request.getParameter("country");
		String postcode = request.getParameter("postcode");
		String province = request.getParameter("province");
//		log.ingo("province==>"+province);
		String city = request.getParameter("city");
//		String province = request.getParameter("province");
//		String city = request.getParameter("city");
		String contactChoice = request.getParameter("contactChoice");
		String country2 = request.getParameter("country2");
		String postcode2 = request.getParameter("postcode2");
		String provinceHid2 = request.getParameter("provinceHid2");
		String cityHid2 = request.getParameter("cityHid2");
//		String province2 = request.getParameter("province2");
//		String city2 = request.getParameter("city2");
		String address2 = request.getParameter("address2");
		String date1 = request.getParameter("date1");
		String date2 = request.getParameter("date2");
		String countryCodes0 = request.getParameter("countryCodes0");
		String mobile1 = request.getParameter("mobile1");
		String countryCodes1 = request.getParameter("countryCodes1");
		String mobile2 = request.getParameter("mobile2");
		String email1 = request.getParameter("email1");
		String email2 = request.getParameter("email2");
		String countryNum1 = request.getParameter("countryNum1");
		String areaNum1 = request.getParameter("areaNum1");
		String phoneNum1 = request.getParameter("phoneNum1");
		String extNum1 = request.getParameter("extNum1");
		String countryNum2 = request.getParameter("countryNum2");
		String areaNum2 = request.getParameter("areaNum2");
		String phoneNum2 = request.getParameter("phoneNum2");
		String extNum2 = request.getParameter("extNum2");
		String countryNum3 = request.getParameter("countryNum3");
		String areaNum3 = request.getParameter("areaNum3");
		String phoneNum3 = request.getParameter("phoneNum3");
		String extNum3 = request.getParameter("extNum3");
		String date3 = request.getParameter("date3");
		String date4 = request.getParameter("date4");
		String countryNum4 = request.getParameter("countryNum4");
		String areaNum4 = request.getParameter("areaNum4");
		String phoneNum4 = request.getParameter("phoneNum4");
		String extNum4 = request.getParameter("extNum4");
		String textfield12 = request.getParameter("textfield12");
		String textfield13 = request.getParameter("textfield13");
		
		ContactInfo contactInfo = new ContactInfo();
		contactInfo.setLanguage(language);
		contactInfo.setCountry(country);
		contactInfo.setPostcode(postcode);
		contactInfo.setProvince(province);
		contactInfo.setCity(city);
		contactInfo.setContactChoice(contactChoice);
		contactInfo.setCountry2(country2);
		contactInfo.setPostcode2(postcode2);
		contactInfo.setProvinceHid2(provinceHid2);
		contactInfo.setCityHid2(cityHid2);
		contactInfo.setAddress2(address2);
		contactInfo.setDate1(date1);
		contactInfo.setDate2(date2);
		
		contactInfo.setCountryCodes0(countryCodes0);
		contactInfo.setMobile1(mobile1);
		contactInfo.setCountryCodes1(countryCodes1);
		contactInfo.setMobile2(mobile2);
		
		contactInfo.setEmail1(email1);
		contactInfo.setEmail2(email2);
		
		contactInfo.setCountryNum1(countryNum1);
		contactInfo.setAreaNum1(areaNum1);
		
		contactInfo.setExtNum1(extNum1);
		contactInfo.setCountryNum2(countryNum2);
		contactInfo.setAreaNum2(areaNum2);
		contactInfo.setPhoneNum1(phoneNum1);
		contactInfo.setExtNum2(extNum2);
		contactInfo.setCountryNum3(countryNum3);
		contactInfo.setAreaNum3(areaNum3);
		contactInfo.setPhoneNum2(phoneNum2);
		contactInfo.setExtNum3(extNum3);
		contactInfo.setDate3(date3);
		contactInfo.setDate4(date4);
		contactInfo.setCountryNum4(countryNum4);
		contactInfo.setAreaNum4(areaNum4);
		contactInfo.setPhoneNum3(phoneNum3);
		contactInfo.setExtNum4(extNum4);
		contactInfo.setTextfield12(textfield12);
		contactInfo.setTextfield13(textfield13);
		contactInfo.setPhoneNum4(phoneNum4);
//		log.ingo("countryCodes0===>"+countryCodes0);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.csairContactInfo(contactInfo );
		return returnValue;
	}
	
	/**
	 * 联系信息弹框校验
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "csairContactInfoCheck" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue csairContactInfoCheck(HttpServletRequest request,HttpSession session){
		log.info("===========================联系信息弹框校验================================");
		String info = request.getParameter("vaildConnectInfo");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.csairContactInfoCheck(info);
		return returnValue;
	}
	
	
	
	/**
	 * 加载明珠会员受让人管理
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "precsairAssigneeCtrl" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue precsairAssigneeCtrl(HttpSession session) {
		log.info("==================================加载明珠会员受让人管理================================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.precsairAssigneeCtrl();
		return returnValue;
	}
	
	/**
	 * 跳转受让人管理已认证页面
	 * @return
	 */
	@RequestMapping(value = "AssigneeCtrl" , method = RequestMethod.GET)
	public String AssigneeCtrl(){
		return "csair/assigneeCtrl";
	}
	
	/**
	 * 加载受让人管理已认证页面
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "preAssigneeCtrl" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue preAssigneeCtrl(HttpSession session){
		log.info("===========================加载受让人管理已认证页面==============================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.preAssigneeCtrl();
		return returnValue;
	}
	
	/**
	 * 受让人管理已认证页面点击继续按钮
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "AssigneeCtrlContinue", method = RequestMethod.POST)
	@ResponseBody
	public Map<String , Object> AssigneeCtrlContinue(HttpSession session){
		log.info("========================受让人管理已认证页面点击继续按钮==============================");
		Map<String , Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.AssigneeCtrlContinue();
		return map;
	}
	
	/**
	 * 受让人管理已认证页面弹框获取验证码
	 * @param session
	 */
	@RequestMapping(value = "AssigneeCtrlYzm", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeCtrlYzm(HttpSession session){
		log.info("================================受让人管理已认证页面弹框获取验证码==============================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeCtrlYzm();
		return returnValue;
	}
	
	/**
	 * 受让人管理已认证页面弹框校验
	 * @param session
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "AssigneeCtrlCheck", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeCtrlCheck(HttpSession session,HttpServletRequest request){
		log.info("===============================受让人管理已认证页面弹框校验=====================================");
		CsairReturnValue returnValue = new CsairReturnValue();
		String yzm = request.getParameter("yzm");
//		log.ingo("yzm======>"+yzm);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeCtrlCheck(yzm);
		return returnValue;
	}

	/**
	 * 受让人信息删除
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "AssigneeCtrlDel" ,method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeCtrlDel(HttpServletRequest request, HttpSession session){
		log.info("=================================受让人信息删除=====================================");
		CsairReturnValue returnValue = new CsairReturnValue();
		String[] ids = request.getParameterValues("ids[]");
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < ids.length; i++) {
			list.add(ids[i]);
		}
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeCtrlDel(list);
		
		return returnValue;
	}
	/**
	 * 受让人信息保存
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "AssigneeCtrlSave" ,method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeCtrlSave(HttpServletRequest request, HttpSession session){
		log.info("=================================受让人信息保存=====================================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Assignee assignee = new Assignee();
		assignee.setFirstNameCN1(request.getParameter("firstNameCN1")); 
//		log.ingo("中文姓============>"+assignee.getFirstNameCN1());
		assignee.setLastNameCN1(request.getParameter("lastNameCN1")); 
		assignee.setInputcertificateIdnum1(request.getParameter("inputcertificateIdnum1")); 
		assignee.setInputpassport1(request.getParameter("inputpassport1")); 
		assignee.setInputotherCertificate1(request.getParameter("inputotherCertificate1")); 
		
		assignee.setFirstNameCN2(request.getParameter("firstNameCN2"));
		assignee.setLastNameCN2(request.getParameter("lastNameCN2"));
		assignee.setInputcertificateIdnum2(request.getParameter("inputcertificateIdnum2"));
		assignee.setInputpassport2(request.getParameter("inputpassport2"));
		assignee.setInputotherCertificate2(request.getParameter("inputotherCertificate2"));
		 
		assignee.setFirstNameCN3(request.getParameter("firstNameCN3"));
		assignee.setLastNameCN3(request.getParameter("lastNameCN3"));
		assignee.setInputcertificateIdnum3(request.getParameter("inputcertificateIdnum3"));
		assignee.setInputpassport3(request.getParameter("inputpassport3"));
		assignee.setInputotherCertificate3(request.getParameter("inputotherCertificate3"));
		
		assignee.setFirstNameCN4(request.getParameter("firstNameCN4"));
		assignee.setLastNameCN4(request.getParameter("lastNameCN4"));
		assignee.setInputcertificateIdnum4(request.getParameter("inputcertificateIdnum4"));
		assignee.setInputpassport4(request.getParameter("inputpassport4"));
		assignee.setInputotherCertificate4(request.getParameter("inputotherCertificate4"));
		
		assignee.setFirstNameCN5(request.getParameter("firstNameCN5"));
		assignee.setLastNameCN5(request.getParameter("lastNameCN5"));
		assignee.setInputcertificateIdnum5(request.getParameter("inputcertificateIdnum5"));
		assignee.setInputpassport5(request.getParameter("inputpassport5"));
		assignee.setInputotherCertificate5(request.getParameter("inputotherCertificate5"));
		
		assignee.setFirstNameCN6(request.getParameter("firstNameCN6"));
		assignee.setLastNameCN6(request.getParameter("lastNameCN6"));
		assignee.setInputcertificateIdnum6(request.getParameter("inputcertificateIdnum6"));
		assignee.setInputpassport6(request.getParameter("inputpassport6"));
		assignee.setInputotherCertificate6(request.getParameter("inputotherCertificate6"));
		
		assignee.setFirstNameCN7(request.getParameter("firstNameCN7"));
		assignee.setLastNameCN7(request.getParameter("lastNameCN7"));
		assignee.setInputcertificateIdnum7(request.getParameter("inputcertificateIdnum7"));
		assignee.setInputpassport7(request.getParameter("inputpassport7"));
		assignee.setInputotherCertificate7(request.getParameter("inputotherCertificate7"));
		
		assignee.setFirstNameCN8(request.getParameter("firstNameCN8"));
		assignee.setLastNameCN8(request.getParameter("lastNameCN8"));
		assignee.setInputcertificateIdnum8(request.getParameter("inputcertificateIdnum8"));
		assignee.setInputpassport8(request.getParameter("inputpassport8"));
		assignee.setInputotherCertificate8(request.getParameter("inputotherCertificate8"));
		
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeCtrlSave(assignee);
		 
		return returnValue;
	}
	
	/**
	 * 受让人取消二次确认
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "AssigneeTwiceCheckQuit" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeTwiceCheckQuit(HttpSession session){
		log.info("==========================受让人取消二次确认==================================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeTwiceCheckQuit();
		return returnValue;
	}
	/**
	 * 受让人确认二次确认
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "AssigneeTwiceCheckBtn" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue AssigneeTwiceCheckBtn(HttpSession session){
		log.info("==========================受让人确认二次确认===================================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.AssigneeTwiceCheckBtn();
		return returnValue;
	}
	
	/**
	 * 加载在线身份认证
	 * 
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "preCsairOnlineIdentityAuthentication", method = RequestMethod.GET)
	public ModelAndView preCsairOnlineIdentityAuthentication(HttpSession session) {
		log.info("=========================加载在线身份认证============================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object> map = webClient.preCsairOnlineIdentityAuthentication();
		return new ModelAndView("csair/onlineIdentityAuthentication2", map);
	}

	/**
	 * 加载同意在线身份认证
	 * 
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "agreeCsairOnlineIdentityAuthentication", method = RequestMethod.GET)
	public ModelAndView agreeCsairOnlineIdentityAuthentication(
			HttpSession session) {
		log.info("==========================加载同意在线身份认证==========================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object> map = webClient.agreeCsairOnlineIdentityAuthentication();
		return new ModelAndView("csair/agreeCsairOnlineIdentityAuthentication2", map);
	}

	/**
	 * 加载同意在线身份认证发送验证码
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "agreeCsairOnlineIdentityAuthenticationVerifCode", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue agreeCsairOnlineIdentityAuthenticationVerifCode(HttpServletRequest request, HttpSession session) {
		log.info("=================================加载同意在线身份认证发送验证码===================================");
		String bandPhone = request.getParameter("bandPhone");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.agreeCsairOnlineIdentityAuthenticationVerifCode(bandPhone);
		return returnValue;
	}
	
	/**
	 * 借记卡申请在线身份验证
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "Debit_cardOnlineIdentityAuthentication", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue Debit_cardOnlineIdentityAuthentication(HttpServletRequest request,HttpSession session){
		log.info("===============================借记卡申请在线身份验证=================================");
		String certType = request.getParameter("certType");
		String bankcardType = request.getParameter("bankcardType");
		String bankcardNo = request.getParameter("bankcardNo");
		String validateCode = request.getParameter("validateCode");
//		log.info("certType===>"+certType);
//		log.info("bankcardType===>"+bankcardType);
//		log.info("bankcardNo===>"+bankcardNo);
//		log.info("validateCode===>"+validateCode);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.Debit_cardOnlineIdentityAuthentication(certType, bankcardType, bankcardNo, validateCode);
		return returnValue;
	}

	/**
	 * 信用卡申请在线身份验证
	 * @param request
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "Credit_cardOnlineIdentityAuthentication" , method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue Credit_cardOnlineIdentityAuthentication(HttpServletRequest request,HttpSession session){
		log.info("===================================信用卡申请在线身份验证==================================");
		String certType = request.getParameter("certType");
		String cCardNo = request.getParameter("cCardNo");
		String effMonth = request.getParameter("effMonth");
		String effYear = request.getParameter("effYear");
		String saveCode = request.getParameter("saveCode");
		String validateCode = request.getParameter("validateCode");
		
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		CsairReturnValue returnValue = webClient.Credit_cardOnlineIdentityAuthentication(certType, cCardNo, effMonth, effYear, saveCode, validateCode);
		return returnValue;
	}
	
	
	/**
	 * 不同意在线认证
	 */
	@RequestMapping(value = "disagreeCsairOnlineIdentityAuthentication", method = RequestMethod.GET)
	public String notAgreeCsairOnlineIdentityAuthentication() {
		log.info("==================================== 不同意在线认证======================================");
		return "csair/disagreeCsairOnlineIdentityAuthentication";
	}

	/**
	 * 常用联系人
	 * @return
	 */
	@RequestMapping(value = "generalContact", method = RequestMethod.GET)
	public String generalContact() {
		log.info("=====================常用联系人========================");
		return "csair/generalContact";
	}
	
	/**
	 * 优惠券
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkYHQ", method = RequestMethod.GET)
	public ModelAndView checkYHQ(HttpSession session) {
		log.info("=====================优惠券========================");
		Map<String,Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkYHQ();
		return new ModelAndView("csair/checkYHQ",map);
	}
	
	/**
	 * 点击优惠券未使用
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkWSY", method = RequestMethod.GET)
	public ModelAndView checkWSY(HttpSession session) {
		log.info("=====================优惠券未使用========================");
		Map<String,Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkWSY();
		return new ModelAndView("csair/checkYHQsy",map);
	}
	
	/**
	 * 点击优惠券已使用
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkYSY", method = RequestMethod.GET)
	public ModelAndView checkYSY(HttpSession session) {
		log.info("=====================优惠券已使用========================");
		Map<String,Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkYSY();
		return new ModelAndView("csair/checkYHQsy",map);
	}
	
	/**
	 * 点击优惠券不可使用
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkBSY", method = RequestMethod.GET)
	public ModelAndView checkBSY(HttpSession session) {
		log.info("=====================优惠券不可使用========================");
		Map<String,Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkBSY();
		return new ModelAndView("csair/checkYHQsy",map);
	}
	
	/**
	 * 查询优惠券号
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkYHQNo", method = RequestMethod.GET)
	public ModelAndView checkYHQNo(HttpSession session,HttpServletRequest request) {
		log.info("====================查询优惠券号========================");
		Map<String,Object> map = new HashMap<String,Object>();
		String keyword = request.getParameter("keyword");
		String mark = request.getParameter("mark");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkYHQNo(keyword,mark);
		return new ModelAndView("csair/checkYHQsy",map);
	}
	
	
	/**
	 * 绑定优惠券号
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkBinding", method = RequestMethod.POST)
	@ResponseBody
	public Map<String,Object> checkBinding(HttpSession session,HttpServletRequest request) {
		log.info("=====================绑定优惠券号========================");
		Map<String,Object> map = new HashMap<String,Object>();
		String keyword = request.getParameter("keyword");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkBinding(keyword);
		return map;
	}
	
	/**
	 * 里程汇总
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkLCHZ", method = RequestMethod.GET)
	public String checkLCHZ1(HttpSession session) {
		log.info("=====================里程汇总========================");
		return "csair/lchz";
	}
	
	/**
	 * 里程汇总
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkLCHZPost", method = RequestMethod.POST)
	@ResponseBody
	public ModelAndView checkLCHZ(HttpSession session) {
		log.info("=====================里程汇总========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkLCHZ();
		return new ModelAndView("csair/lchzlb",map);
	}
	
	/**
	 * 城市间里程累积查询跳页
	 * @return
	 */
	@RequestMapping(value = "checkLCLj", method = RequestMethod.GET)
	public String checkLCLj(HttpSession session) {
		log.info("=====================城市间里程累计查询跳页========================");
		return ("csair/checkLCLj");
	}
	/**
	 * 城市间里程累积页面加载
	 * @return
	 */
	@RequestMapping(value = "jzlCLj", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue jzlCLj(HttpSession session) {
		log.info("=====================城市间里程累计查询加载========================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.checklCLj();
		return returnValue;
	}
	
	/**
	 * 城市间里程累积查询
	 * @return
	 */
	@RequestMapping(value = "cityLCcheck", method = RequestMethod.GET)
	public ModelAndView cityLCcheck(HttpSession session,HttpServletRequest request) {
		log.info("=====================城市间里程累计查询========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String cname_city1 = null;
		String cname_city2 = null;
		try {
			cname_city1 = new String(request.getParameter("cname_city1").getBytes("ISO-8859-1"), "UTF-8");
			cname_city2 = new String(request.getParameter("cname_city2").getBytes("ISO-8859-1"), "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		String select = request.getParameter("select");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.cityLCcheck(cname_city1,cname_city2,select);
		return new ModelAndView("csair/cityLCcheckInfo",map);
	}
	
	/**
	 * 里程兑换计算器跳页
	 * @return
	 */
	@RequestMapping(value = "checklCExchange", method = RequestMethod.GET)
	public String checklCExchange(HttpSession session) {
		log.info("=====================里程兑换计算器跳页========================");
		return ("csair/checkLcExchange");
	}
	
	/**
	 * 里程兑换计算器页面加载
	 * @return
	 */
	@RequestMapping(value = "jzExchange", method = RequestMethod.POST)
	@ResponseBody
	public CsairReturnValue jzExchange(HttpSession session) {
		log.info("=====================里程兑换计算器页面加载========================");
		CsairReturnValue returnValue = new CsairReturnValue();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		returnValue = webClient.jzExchange();
		return returnValue;
	}
	
	/**
	 * 里程兑换计算器查询
	 * @return
	 */
	@RequestMapping(value = "LcExchangeCheck", method = RequestMethod.GET)
	public ModelAndView LcExchangeCheck(HttpSession session,HttpServletRequest request) {
		log.info("=====================里程兑换计算器查询========================");
		Map<String, Object> map = new HashMap<String,Object>();
		
		String cname_city1 = null;
		String cname_city2 = null;
		try {
			cname_city1 = new String(request.getParameter("cname_city1").getBytes("ISO-8859-1"), "UTF-8");
			cname_city2 = new String(request.getParameter("cname_city2").getBytes("ISO-8859-1"), "UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.LcExchangeCheck(cname_city1,cname_city2);
		return new ModelAndView("csair/LcExchangeInfo",map);
	}
	
	/**
	 * 跳转常用联系人页面
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commContactor", method = RequestMethod.GET)
	public String commContactor() {
		log.info("=====================跳转常用联系人页面========================");
		return "csair/commContactor";
	}
	
	/**
	 * 加载常用联系人信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commContactorLoad", method = RequestMethod.GET)
	public ModelAndView commContactorLoad(HttpSession session) {
		log.info("=====================加载常用联系人信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commContactorLoad();
		return new ModelAndView("csair/commContactorLoad",map);
	}
	
	/**
	 * 按照姓名查询常用联系人
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "contactNameCheck", method = RequestMethod.GET)
	public ModelAndView contactNameCheck(HttpSession session,HttpServletRequest request) {
		log.info("=====================按照姓名查询常用联系人========================");
		Map<String, Object> map = new HashMap<String,Object>();
//		String contactorName = null;
//		try {
//			contactorName = new String(request.getParameter("contactorName").getBytes("ISO-8859-1"), "UTF-8");
//		} catch (UnsupportedEncodingException e) {
//			e.printStackTrace();
//		}
		String contactorName = request.getParameter("contactorName").toString();
		byte[] base64decodedBytes = Base64.getDecoder().decode(contactorName);
		try {
			contactorName = new String(base64decodedBytes, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("contactorName===>"+contactorName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.contactNameCheck(contactorName);
		return new ModelAndView("csair/commContactorLoad",map);
	}
	
	
	/**
	 * 跳转增加常用联系人页面
	 * @return
	 */
	@RequestMapping(value = "addCommContactorPage", method = RequestMethod.GET)
	public String addCommContactorPage() {
		log.info("=====================跳转增加常用联系人页面========================");
		return "csair/addCommContactorPage";
	}
	
	/**
	 * 加载增加常用联系人页面
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "addCommContactorPageLoad", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> addCommContactorPageLoad(HttpSession session){
		log.info("=====================加载增加常用联系人页面========================");
		Map<String, Object> map = new HashMap<String, Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.addCommContactorPageLoad();
		return map;
	}
	
	/**
	 * 增加常用联系人保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "saveCommContactor", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> saveCommContactor(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用联系人========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String contactName = request.getParameter("contactName");
		String contactPhone = request.getParameter("contactPhone");
		String contactFPNO = request.getParameter("contactFPNO");
		String contactEmail = request.getParameter("contactEmail");
		try {
			contactName = URLDecoder.decode(contactName,"UTF-8");
			contactPhone = URLDecoder.decode(contactPhone,"UTF-8");
			contactFPNO = URLDecoder.decode(contactFPNO,"UTF-8");
			contactEmail = URLDecoder.decode(contactEmail,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("contactName===>"+contactName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.saveCommContactor(contactName,contactPhone,contactFPNO,contactEmail);
		return map;
	}
	
	/**
	 * 根据class跳页加载常用联系人信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commContactorLoadPageClass", method = RequestMethod.GET)
	public ModelAndView commContactorLoadPageClass(HttpSession session,HttpServletRequest request) {
		log.info("=====================根据class跳页加载常用联系人信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String aClass = request.getParameter("aClass");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commContactorLoadPageClass(aClass);
		return new ModelAndView("csair/commContactorLoad",map);
	}
	
	/**
	 * 根据id跳页加载常用联系人信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commContactorLoadPageId", method = RequestMethod.GET)
	public ModelAndView commContactorLoadPageId(HttpSession session,HttpServletRequest request) {
		log.info("=====================根据id跳页加载常用联系人信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String aId = request.getParameter("aId");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commContactorLoadPageId(aId);
		return new ModelAndView("csair/commContactorLoad",map);
	}
	
	/**
	 * 点击修改常用联系人
	 * @param session
	 * @return
	 */
//	@RequestMapping(value = "checkEditCommContactor", method = RequestMethod.GET)
//	public ModelAndView checkEditCommContactor(HttpSession session,HttpServletRequest request) {
//		log.info("=====================点击修改常用联系人信息========================");
//		Map<String, Object> map = new HashMap<String,Object>();
//		String num = request.getParameter("num");
//		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
//		map = webClient.checkEditCommContactor(num);
//		return new ModelAndView("csair/editCommContactorPage",map);
//	}
	/**
	 * 点击修改常用联系人
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkEditCommContactor", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> checkEditCommContactor(HttpSession session,HttpServletRequest request) {
		log.info("=====================点击修改常用联系人信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String num = request.getParameter("num");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkEditCommContactor(num);
		return map;
	}
	
	/**
	 * 加载修改常用联系人
	 */
	@RequestMapping(value = "loadEditCommContactor", method = RequestMethod.GET)
	public ModelAndView loadEditCommContactor(HttpSession session) {
		log.info("=====================点击修改常用联系人信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.loadEditCommContactor();
		return new ModelAndView("csair/editCommContactorPage",map);
	}
	
	/**
	 * 修改常用联系人保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "saveEditCommContactor", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> saveEditCommContactor(HttpSession session,HttpServletRequest request){
		log.info("=====================保存修改常用联系人========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String contactName = request.getParameter("contactName");
		String contactPhone = request.getParameter("contactPhone");
		String contactFPNO = request.getParameter("contactFPNO");
		String contactEmail = request.getParameter("contactEmail");
		try {
			contactName = URLDecoder.decode(contactName,"UTF-8");
			contactPhone = URLDecoder.decode(contactPhone,"UTF-8");
			contactFPNO = URLDecoder.decode(contactFPNO,"UTF-8");
			contactEmail = URLDecoder.decode(contactEmail,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("contactName==>"+contactName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.saveEditCommContactor(contactName,contactPhone,contactFPNO,contactEmail);
		return map;
	}
	
	/**
	 * 点击删除常用联系人
	 * @param session
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "checkDelCommContactor", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> checkDelCommContactor(HttpSession session,HttpServletRequest request){
		log.info("=====================点击删除常用联系人========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String num = request.getParameter("num");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkDelCommContactor(num);
		return map;
	}
	
	
	/**
	 * 跳转常用旅客管理页面
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commPassenger", method = RequestMethod.GET)
	public String commPassenger() {
		log.info("=====================跳转常用旅客信息页面========================");
		return "csair/commPassenger";
	}
	
	/**
	 * 加载常用旅客管理
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commPassengerLoad", method = RequestMethod.GET)
	public ModelAndView commPassengerLoad(HttpSession session) {
		log.info("=====================加载常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commPassengerLoad();
		return new ModelAndView("csair/commPassengerLoad",map);
	}
	
	/**
	 * 根据class跳页加载常用旅客管理
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commPassengerLoadPageClass", method = RequestMethod.GET)
	public ModelAndView commPassengerLoadPageClass(HttpSession session,HttpServletRequest request) {
		log.info("=====================根据class跳页加载常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String aClass = request.getParameter("aClass");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commPassengerLoadPageClass(aClass);
		return new ModelAndView("csair/commPassengerLoad",map);
	}
	
	/**
	 * 根据id跳页加载常用旅客管理
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "commPassengerLoadPageId", method = RequestMethod.GET)
	public ModelAndView commPassengerLoadPageId(HttpSession session,HttpServletRequest request) {
		log.info("=====================根据id跳页加载常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String aId = request.getParameter("aId");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.commPassengerLoadPageId(aId);
		return new ModelAndView("csair/commPassengerLoad",map);
	}
	
	/**
	 * 按照姓名查询常用旅客管理
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "passengerNameCheck", method = RequestMethod.GET)
	public ModelAndView passengerNameCheck(HttpSession session,HttpServletRequest request) {
		log.info("=====================按照姓名查询常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String passengerName = request.getParameter("passengerName").toString();
		String psg_tpye = request.getParameter("psg_tpye").toString();
		byte[] base64decodedBytes1 = Base64.getDecoder().decode(passengerName);
		byte[] base64decodedBytes2 = Base64.getDecoder().decode(psg_tpye);
		try {
			passengerName = new String(base64decodedBytes1, "utf-8");
			psg_tpye = new String(base64decodedBytes2, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("passengerName===>"+passengerName);
		System.out.println("psg_tpye===>"+psg_tpye);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.passengerNameCheck(psg_tpye,passengerName);
		return new ModelAndView("csair/commPassengerLoad",map);
	}
	
	
	/**
	 * 点击查看常用旅客信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkViewPassenger", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> checkViewPassenger(HttpSession session,HttpServletRequest request) {
		log.info("=====================点击查看常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String passengerName = request.getParameter("passengerName");
		String domesticOrInternational = request.getParameter("domesticOrInternational");
		String passengerType = request.getParameter("passengerType");
		String cardNum = request.getParameter("cardNum");
		try {
			passengerName = URLDecoder.decode(passengerName,"UTF-8");
			domesticOrInternational = URLDecoder.decode(domesticOrInternational,"UTF-8");
			passengerType = URLDecoder.decode(passengerType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("passengerName="+passengerName+"&domesticOrInternational="+domesticOrInternational+"&passengerType="+passengerType+"&cardNum="+cardNum);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkViewPassenger(passengerName,domesticOrInternational,passengerType,cardNum);
		return map;
	}
	
	
	
	/**
	 * 加载查看常用旅客信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "loadViewPassenger", method = RequestMethod.GET)
	public ModelAndView loadViewPassenger(HttpSession session) {
		log.info("=====================加载查看常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.loadViewPassenger();
		return new ModelAndView("csair/commPassengerMX",map);
	}
	
	/**
	 * 点击删除常用旅客
	 * @param session
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "checkDelCommPassenger", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> checkDelCommPassenger(HttpSession session,HttpServletRequest request){
		log.info("=====================点击删除常用旅客========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String passengerName = request.getParameter("passengerName");
		String domesticOrInternational = request.getParameter("domesticOrInternational");
		String passengerType = request.getParameter("passengerType");
		String cardNum = request.getParameter("cardNum");
		try {
			passengerName = URLDecoder.decode(passengerName,"UTF-8");
			domesticOrInternational = URLDecoder.decode(domesticOrInternational,"UTF-8");
			passengerType = URLDecoder.decode(passengerType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkDelCommPassenger(passengerName,domesticOrInternational,passengerType,cardNum);
		return map;
	}
	
	/**
	 * 跳转增加常用旅客信息页面
	 * @return
	 */
	@RequestMapping(value = "addCommPassengerPage", method = RequestMethod.GET)
	public String addCommPassengerPage() {
		log.info("=====================跳转增加常用旅客信息页面========================");
		return "csair/addCommPassengerPage";
	}
	
	/**
	 * 加载增加常用旅客页面
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "addCommPassengerPageLoad", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> addCommPassengerPageLoad(HttpSession session){
		log.info("=====================加载增加常用旅客========================");
		Map<String, Object> map = new HashMap<String, Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.addCommPassengerPageLoad();
		return map;
	}
	
	/**
	 * 增加常用旅客（ 成人）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "saveCommPassengerAdult", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> saveCommPassengerAdult(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（成人）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String cardType = request.getParameter("cardType");
		String cardNum = request.getParameter("cardNum");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			cardType = URLDecoder.decode(cardType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.saveCommPassengerAdult(psgName,psgFPNO,cardType,cardNum,phoneNum,email);
		return map;
	}
	
	/**
	 * 增加常用旅客（ 儿童）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "saveCommPassengerChild", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> saveCommPassengerChild(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（儿童）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String cardType = request.getParameter("cardType");
		String cardNum = request.getParameter("cardNum");
		String year = request.getParameter("year");
		String month = request.getParameter("month");
		String day = request.getParameter("day");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			cardType = URLDecoder.decode(cardType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
			year = URLDecoder.decode(year,"UTF-8");
			month = URLDecoder.decode(month,"UTF-8");
			day = URLDecoder.decode(day,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.saveCommPassengerChild(psgName,psgFPNO,cardType,cardNum,year,month,day,phoneNum,email);
		return map;
	}
	
	/**
	 * 增加常用旅客（ 婴儿）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "saveCommPassengerInfant", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> saveCommPassengerInfant(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（婴儿）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String year = request.getParameter("year");
		String month = request.getParameter("month");
		String day = request.getParameter("day");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			year = URLDecoder.decode(year,"UTF-8");
			month = URLDecoder.decode(month,"UTF-8");
			day = URLDecoder.decode(day,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.saveCommPassengerInfant(psgName,psgFPNO,year,month,day,phoneNum,email);
		return map;
	}
	
	/**
	 * 点击修改常用旅客信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkEditPassenger", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> checkEditPassenger(HttpSession session,HttpServletRequest request) {
		log.info("=====================点击修改常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		String passengerName = request.getParameter("passengerName");
		String domesticOrInternational = request.getParameter("domesticOrInternational");
		String passengerType = request.getParameter("passengerType");
		String cardNum = request.getParameter("cardNum");
		try {
			passengerName = URLDecoder.decode(passengerName,"UTF-8");
			domesticOrInternational = URLDecoder.decode(domesticOrInternational,"UTF-8");
			passengerType = URLDecoder.decode(passengerType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("passengerName="+passengerName+"&domesticOrInternational="+domesticOrInternational+"&passengerType="+passengerType+"&cardNum="+cardNum);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkEditPassenger(passengerName,domesticOrInternational,passengerType,cardNum);
		return map;
	}
	
	/**
	 * 加载修改常用旅客信息
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "loadEditPassenger", method = RequestMethod.GET)
	public ModelAndView loadEditPassenger(HttpSession session) {
		log.info("=====================加载修改常用旅客信息========================");
		Map<String, Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.loadEditPassenger();
		return new ModelAndView("csair/editCommPassengerPage",map);
	}
	
	/**
	 * 修改常用旅客（ 成人）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "editCommPassengerAdult", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> editCommPassengerAdult(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（成人）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String cardType = request.getParameter("cardType");
		String cardNum = request.getParameter("cardNum");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			cardType = URLDecoder.decode(cardType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.editCommPassengerAdult(psgName,psgFPNO,cardType,cardNum,phoneNum,email);
		return map;
	}
	
	/**
	 * 修改常用旅客（ 儿童）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "editCommPassengerChild", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> editCommPassengerChild(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（儿童）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String cardType = request.getParameter("cardType");
		String cardNum = request.getParameter("cardNum");
		String year = request.getParameter("year");
		String month = request.getParameter("month");
		String day = request.getParameter("day");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			cardType = URLDecoder.decode(cardType,"UTF-8");
			cardNum = URLDecoder.decode(cardNum,"UTF-8");
			year = URLDecoder.decode(year,"UTF-8");
			month = URLDecoder.decode(month,"UTF-8");
			day = URLDecoder.decode(day,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.editCommPassengerChild(psgName,psgFPNO,cardType,cardNum,year,month,day,phoneNum,email);
		return map;
	}
	
	/**
	 * 修改常用旅客（ 婴儿）保存
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "editCommPassengerInfant", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> editCommPassengerInfant(HttpSession session,HttpServletRequest request){
		log.info("=====================保存增加常用旅客（婴儿）========================");
		Map<String, Object> map = new HashMap<String, Object>();
		String psgName = request.getParameter("psgName");
		String psgFPNO = request.getParameter("psgFPNO");
		String year = request.getParameter("year");
		String month = request.getParameter("month");
		String day = request.getParameter("day");
		String phoneNum = request.getParameter("phoneNum");
		String email = request.getParameter("email");
		try {
			psgName = URLDecoder.decode(psgName,"UTF-8");
			psgFPNO = URLDecoder.decode(psgFPNO,"UTF-8");
			year = URLDecoder.decode(year,"UTF-8");
			month = URLDecoder.decode(month,"UTF-8");
			day = URLDecoder.decode(day,"UTF-8");
			phoneNum = URLDecoder.decode(phoneNum,"UTF-8");
			email = URLDecoder.decode(email,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		System.out.println("psgName===>"+psgName);
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.editCommPassengerInfant(psgName,psgFPNO,year,month,day,phoneNum,email);
		return map;
	}

	/**
	 * 跳转获取里程页面
	 * @return
	 */
	@RequestMapping(value = "gainMileage",method = RequestMethod.GET)
	public String gainMileage() {
		log.info("=================跳转获取里程页面===============");
		return "csair/gainMileage";
	}
	/**
	 * 跳转飞行里程页面
	 * @return
	 */
	@RequestMapping(value = "flightMileage",method = RequestMethod.GET)
	public String flightMileage() {
		log.info("=================跳转获取里程页面===============");
		return "csair/flightMileage";
	}
	
	/**
	 * 加载飞行里程南方航空页面
	 * @return
	 */
	@RequestMapping(value = "nanFangHangKong",method = RequestMethod.GET)
	public ModelAndView nanFangHangKong(HttpSession session) {
		log.info("=================加载飞行里程南方航空页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.nanFangHangKong();
		return new ModelAndView("csair/nanHangContent",map);
	}
	/**
	 * 加载飞行里程天合联盟页面
	 * @return
	 */
	@RequestMapping(value = "tianHeLianMengHangKongPage",method = RequestMethod.GET)
	public ModelAndView tianHeLianMengHangKongPage(HttpSession session) {
		log.info("=================加载飞行里程天合联盟页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.tianHeLianMengHangKongPage();
		return new ModelAndView("csair/tianHeLianMengHangKongContent",map);
	}
	/**
	 * 加载飞行里程其他合作伙伴页面
	 * @return
	 */
	@RequestMapping(value = "othersPage",method = RequestMethod.GET)
	public ModelAndView othersPage(HttpSession session) {
		log.info("=================加载飞行里程其他合作伙伴页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.othersPage();
		return new ModelAndView("csair/othersPageContent",map);
	}
	
	/**
	 * 跳转酒店里程页面
	 * @return
	 */
	@RequestMapping(value = "hotelMileage",method = RequestMethod.GET)
	public String hotelMileage() {
		log.info("=================跳转酒店里程页面===============");
		return "csair/hotelMileage";
	}
	
	/**
	 * 加载酒店里程页面
	 * @return
	 */
	@RequestMapping(value = "hotelMileagePage",method = RequestMethod.GET)
	public ModelAndView hotelMileagePage(HttpSession session) {
		log.info("=================加载酒店里程页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.hotelMileagePage();
		return new ModelAndView("csair/hotelMileageContent",map);
	}
	
	
	/**
	 * 跳转刷卡里程页面
	 * @return
	 */
	@RequestMapping(value = "cardMileage",method = RequestMethod.GET)
	public String cardMileage() {
		log.info("=================跳转刷卡里程页面===============");
		return "csair/cardMileage";
	}
	
	/**
	 * 加载联名信用卡页面
	 * @return
	 */
	@RequestMapping(value = "lianMingXinYongKa",method = RequestMethod.GET)
	public ModelAndView lianMingXinYongKa(HttpSession session) {
		log.info("=================加载联名信用卡页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.lianMingXinYongKa();
		return new ModelAndView("csair/lianMingXinYongKaContent",map);
	}
	/**
	 * 加载银行积分兑换页面
	 * @return
	 */
	@RequestMapping(value = "yinHangJiFenDuiHuan",method = RequestMethod.GET)
	public ModelAndView yinHangJiFenDuiHuan(HttpSession session) {
		log.info("=================加载银行积分兑换页面===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.yinHangJiFenDuiHuan();
		return new ModelAndView("csair/yinHangJiFenDuiHuanContent",map);
	}
	
	/**
	 * 跳转其他合作伙伴里程页面
	 * @return
	 */
	@RequestMapping(value = "otherMileage",method = RequestMethod.GET)
	public String otherMileage() {
		log.info("================= 跳转其他合作伙伴里程页面===============");
		return "csair/otherMileage";
	}
	
	/**
	 * 加载其他合作伙伴里程租车
	 * @return
	 */
	@RequestMapping(value = "zuChe",method = RequestMethod.GET)
	public ModelAndView zuChe(HttpSession session) {
		log.info("=================加载其他合作伙伴里程租车===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.zuChe();
		return new ModelAndView("csair/zuCheContent",map);
	}
	/**
	 * 加载其他合作伙伴里程商旅
	 * @return
	 */
	@RequestMapping(value = "shangLv",method = RequestMethod.GET)
	public ModelAndView shangLv(HttpSession session) {
		log.info("=================加载其他合作伙伴里程商旅===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.shangLv();
		return new ModelAndView("csair/shangLvContent",map);
	}
	/**
	 * 加载其他合作伙伴里程餐饮
	 * @return
	 */
	@RequestMapping(value = "canYin",method = RequestMethod.GET)
	public ModelAndView canYin(HttpSession session) {
		log.info("=================加载其他合作伙伴里程餐饮===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.canYin();
		return new ModelAndView("csair/canYinContent",map);
	}
	/**
	 * 加载其他合作伙伴里程其他
	 * @return
	 */
	@RequestMapping(value = "qiTa",method = RequestMethod.GET)
	public ModelAndView qiTa(HttpSession session) {
		log.info("=================加载其他合作伙伴里程其他===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.qiTa();
		return new ModelAndView("csair/qiTaContent",map);
	}
	
	
	/**
	 * 跳转里程补登页面
	 * @return
	 */
	@RequestMapping(value = "mileageSupplement",method = RequestMethod.GET)
	public String mileageSupplement() {
		log.info("================= 跳转里程补登页面===============");
		return "csair/mileageSupplement";
	}
	
	/**
	 * 加载里程补登
	 * @return
	 */
	@RequestMapping(value = "mileageSupplementPage",method = RequestMethod.GET)
	public ModelAndView mileageSupplementPage(HttpSession session) {
		log.info("=================加载里程补登===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.mileageSupplementPage();
		return new ModelAndView("csair/mileageSupplementPage",map);
	}
	
	/**
	 * 跳转里程延期
	 * @return
	 */
	@RequestMapping(value = "mileageDelay",method = RequestMethod.GET)
	public String mileageDelay() {
		log.info("=================跳转里程延期===============");
		return "csair/mileageDelay";
	}
	
	/**
	 * 加载里程延期
	 * @return
	 */
	@RequestMapping(value = "mileageDelayPage",method = RequestMethod.GET)
	public ModelAndView mileageDelayPage(HttpSession session) {
		log.info("================加载里程延期===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.mileageDelayPage();
		return new ModelAndView("csair/mileageDelayPage",map);
	}
	
	/**
	 * 跳转会员专享
	 * @return
	 */
	@RequestMapping(value = "VIP",method = RequestMethod.GET)
	public String VIP() {
		log.info("=================跳转会员专享===============");
		return "csair/VIP";
	}
	/**
	 * 跳转高端礼遇
	 * @return
	 */
	@RequestMapping(value = "h_courtesy",method = RequestMethod.GET)
	public String h_courtesy() {
		log.info("================= 跳转高端礼遇===============");
		return "csair/h_courtesy";
	}
	
	/**
	 * 加载高端礼遇
	 * @return
	 */
	@RequestMapping(value = "h_courtesyPage",method = RequestMethod.GET)
	public ModelAndView h_courtesyPage(HttpSession session) {
		log.info("=================加载高端礼遇===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.h_courtesyPage();
//		return new ModelAndView("csair/h_courtesyPage",map);
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转短信定制
	 * @return
	 */
	@RequestMapping(value = "SMScustomization",method = RequestMethod.GET)
	public String SMScustomization() {
		log.info("================= 跳转短信定制===============");
		return "csair/SMScustomization";
	}
	
	/**
	 * 加载短信定制明珠会员尊享短信功能
	 * @return
	 */
	@RequestMapping(value = "SMSfunction",method = RequestMethod.GET)
	public ModelAndView SMSfunction(HttpSession session) {
		log.info("================加载短信定制明珠会员尊享短信功能===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.SMSfunction();
//		return new ModelAndView("csair/SMSfunction",map);
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载短信定制短信值机
	 * @return
	 */
	@RequestMapping(value = "SMSonDuty",method = RequestMethod.GET)
	public ModelAndView SMSonDuty(HttpSession session) {
		log.info("=================加载短信定制短信值机===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.SMSonDuty();
//		return new ModelAndView("csair/SMSonDuty",map);
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载短信定制短信入会
	 * @return
	 */
	@RequestMapping(value = "SMSadmission",method = RequestMethod.GET)
	public ModelAndView SMSadmission(HttpSession session) {
		log.info("=================加载短信定制短信入会===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.SMSadmission();
//		return new ModelAndView("csair/SMSadmission",map);
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转便捷签证
	 * @return
	 */
	@RequestMapping(value = "visa",method = RequestMethod.GET)
	public String visa() {
		log.info("================= 跳转便捷签证===============");
		return "csair/visa";
	}
	
	/**
	 * 加载便捷签证
	 * @return
	 */
	@RequestMapping(value = "visaPage",method = RequestMethod.GET)
	public ModelAndView visaPage(HttpSession session) {
		log.info("=================加载便捷签证===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.visaPage();
//		return new ModelAndView("csair/visaPage",map);
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转明珠礼遇
	 * @return
	 */
	@RequestMapping(value = "mz_courtesy",method = RequestMethod.GET)
	public String mz_courtesy() {
		log.info("================= 跳转明珠礼遇===============");
		return "csair/mz_courtesy";
	}
	
	
	/**
	 * 加载明珠礼遇
	 * @return
	 */
	@RequestMapping(value = "mz_courtesyPage",method = RequestMethod.GET)
	public ModelAndView mz_courtesyPage(HttpSession session) {
		log.info("=================加载明珠礼遇===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.mz_courtesyPage();
//		return new ModelAndView("csair/mz_courtesyPage",map);
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转关于我们
	 * @return
	 */
	@RequestMapping(value = "aboutUs",method = RequestMethod.GET)
	public String aboutUs() {
		log.info("================= 跳转关于我们===============");
		return "csair/aboutUs";
	}
	/**
	 * 跳转简介页面
	 * @return
	 */
	@RequestMapping(value = "introduction",method = RequestMethod.GET)
	public String introduction() {
		log.info("================= 跳转简介页面===============");
		return "csair/introduction";
	}
	
	/**
	 * 加载简介
	 * @return
	 */
	@RequestMapping(value = "introductionPage",method = RequestMethod.GET)
	public ModelAndView introductionPage(HttpSession session) {
		log.info("=================加载简介===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.introductionPage();
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转会员级别页面
	 * @return
	 */
	@RequestMapping(value = "membershipLevel",method = RequestMethod.GET)
	public String membershipLevel() {
		log.info("================= 跳转会员级别页面===============");
		return "csair/membershipLevel";
	}
	
	/**
	 * 加载会员级别
	 * @return
	 */
	@RequestMapping(value = "membershipLevelPage",method = RequestMethod.GET)
	public ModelAndView membershipLevelPage(HttpSession session) {
		log.info("=================加载会员级别===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.membershipLevelPage();
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转会员权益页面
	 * @return
	 */
	@RequestMapping(value = "membershipRights",method = RequestMethod.GET)
	public String membershipRights() {
		log.info("================= 跳转会员权益页面===============");
		return "csair/membershipRights";
	}
	
	/**
	 * 加载会员权益
	 * @return
	 */
	@RequestMapping(value = "membershipRightsPage",method = RequestMethod.GET)
	public ModelAndView membershipRightsPage(HttpSession session) {
		log.info("=================加载会员权益===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.membershipRightsPage();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载天合优享
	 * @return
	 */
	@RequestMapping(value = "tianheEnjoy",method = RequestMethod.GET)
	public ModelAndView tianheEnjoy(HttpSession session) {
		log.info("=================加载天合优享===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.tianheEnjoy();
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转明珠快讯页面
	 * @return
	 */
	@RequestMapping(value = "mzNews",method = RequestMethod.GET)
	public String mzNews() {
		log.info("================= 跳转明珠快讯页面===============");
		return "csair/mzNews";
	}
	/**
	 * 跳转明珠快讯页面
	 * @return
	 */
	@RequestMapping(value = "promotionalInfo",method = RequestMethod.GET)
	public String promotionalInfo() {
		log.info("================= 跳转明珠快讯页面===============");
		return "csair/promotionalInfo";
	}
	/**
	 * 加载热点活动列表
	 * @return
	 */
	@RequestMapping(value = "hotActivity",method = RequestMethod.GET)
	public ModelAndView promotionalInfo(HttpSession session) {
		log.info("=================加载热点活动列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.hotActivity();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载航线促销列表
	 * @return
	 */
	@RequestMapping(value = "lines",method = RequestMethod.GET)
	public ModelAndView lines(HttpSession session) {
		log.info("=================加载航线促销列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.lines();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载银行列表
	 * @return
	 */
	@RequestMapping(value = "banking",method = RequestMethod.GET)
	public ModelAndView banking(HttpSession session) {
		log.info("=================加载银行列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.banking();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载酒店列表
	 * @return
	 */
	@RequestMapping(value = "hotels",method = RequestMethod.GET)
	public ModelAndView hotels(HttpSession session) {
		log.info("=================加载酒店列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.hotels();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载租车列表
	 * @return
	 */
	@RequestMapping(value = "cars",method = RequestMethod.GET)
	public ModelAndView cars(HttpSession session) {
		log.info("=================加载租车列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.cars();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载旅游列表
	 * @return
	 */
	@RequestMapping(value = "travels",method = RequestMethod.GET)
	public ModelAndView travels(HttpSession session) {
		log.info("=================加载旅游列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.travels();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载酒店预订网列表
	 * @return
	 */
	@RequestMapping(value = "booking",method = RequestMethod.GET)
	public ModelAndView booking(HttpSession session) {
		log.info("=================加载酒店预订网列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.booking();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 加载其他列表
	 * @return
	 */
	@RequestMapping(value = "others",method = RequestMethod.GET)
	public ModelAndView others(HttpSession session) {
		log.info("=================加载其他列表===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.others();
		return new ModelAndView("csair/loadPage",map);
	}
	
	/**
	 * 跳转俱乐部消息
	 * @return
	 */
	@RequestMapping(value = "clubInfo",method = RequestMethod.GET)
	public String clubInfo() {
		log.info("================= 跳转明珠快讯页面===============");
		return "csair/clubInfo";
	}
	/**
	 * 加载俱乐部消息
	 * @return
	 */
	@RequestMapping(value = "loadclubInfo",method = RequestMethod.GET)
	public ModelAndView loadclubInfo(HttpSession session) {
		log.info("=================俱乐部消息===============");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.loadclubInfo();
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 点击列表链接
	 * @return
	 */
	@RequestMapping(value = "clickA",method = RequestMethod.GET)
	public ModelAndView clickA(HttpSession session,HttpServletRequest request) {
		log.info("=================点击列表链接===============");
		String href = request.getParameter("href");
		Map<String, Object> map = new HashMap<String , Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.clickA(href);
		return new ModelAndView("csair/loadPage",map);
	}
	/**
	 * 查询余额
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "checkBalance", method = RequestMethod.GET)
	public ModelAndView checkBalance(HttpSession session) {
		log.info("=====================查询余额========================");
		Map<String,Object> map = new HashMap<String,Object>();
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		map = webClient.checkBalance();
		return new ModelAndView("csair/checkBalance",map);
	}
	
	/**
	 * 立即开通
	 * @param session
	 * @return
	 */
	@RequestMapping(value = "ljkt", method = RequestMethod.GET)
	public ModelAndView ljkt(HttpSession session) {
		log.info("=====================查询余额========================");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object>  map = webClient.ljkt();
		return new ModelAndView("csair/ljkt",map);
	}
	
	/**
	 * 余额获取手机验证码
	 * @param session
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "sjyzm", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> sjyzm(HttpSession session,HttpServletRequest request) {
		log.info("=====================余额获取手机验证码========================");
		String mobile = request.getParameter("mobile");
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object>  map = webClient.sjyzm(mobile);
		return map;
	}
	
	/**
	 * 完成注册
	 * @param session
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "wczc", method = RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> wczc(HttpSession session,HttpServletRequest request) {
		log.info("=====================完成注册========================");
		YuEZhuCeInfo yuEZhuCeInfo = new YuEZhuCeInfo();
		yuEZhuCeInfo.setMobile(request.getParameter("mobile"));
//		yuEZhuCeInfo.setEmail(request.getParameter("email"));
//		yuEZhuCeInfo.setQuestion(request.getParameter("question"));
		yuEZhuCeInfo.setPwd(request.getParameter("pwd"));
		yuEZhuCeInfo.setPasswordAgain(request.getParameter("passwordAgain"));
		yuEZhuCeInfo.setAnswer(request.getParameter("answer"));
		yuEZhuCeInfo.setCode(request.getParameter("code"));
		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
		Map<String, Object>  map = webClient.wczc(yuEZhuCeInfo);
		return map;
	}
	
	/**
	 * 充值
	 * @param session
	 * @return
	 */
//	@RequestMapping(value = "checkChongzhi", method = RequestMethod.GET)
//	public ModelAndView checkChongzhi(HttpSession session) {
//		Map<String, Object> map = new HashMap<String,Object>();
//		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
//		map = webClient.checkChongzhi();
//		return new ModelAndView("csair/chongzhi",map);
//	}
	
	/**
	 * chinapay点击下一步
	 * @param session
	 * @param request
	 * @return
	 */
//	@RequestMapping(value = "chinapayNext", method = RequestMethod.POST)
//	@ResponseBody
//	public Map<String, Object> chinapayNext(HttpSession session,HttpServletRequest request) {
//		Map<String, Object> map = new HashMap<String,Object>();
//		String paytype = request.getParameter("paytype");
//		String chinapaymoney = request.getParameter("chinapaymoney");
//		String id = request.getParameter("id");
//		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
//		map = webClient.chinapayNext(paytype,chinapaymoney,id);
//		return map;
//	}
	
	/**
	 * 充值卡充值点击下一步
	 * @param session
	 * @param request
	 * @return
	 */
//	@RequestMapping(value = "rechargeableNext", method = RequestMethod.POST)
//	@ResponseBody
//	public Map<String, Object> rechargeableNext(HttpSession session,HttpServletRequest request) {
//		Map<String, Object> map = new HashMap<String,Object>();
//		String paytype = request.getParameter("paytype");
//		String cardaccount = request.getParameter("cardaccount");
//		String cardpassword = request.getParameter("cardpassword");
//		Csair webClient = (CsairImpl) session.getAttribute(Csair.WEBCLIENT);
//		map = webClient.rechargeableNext(paytype,cardaccount,cardpassword);
//		return map;
//	}
}
